# for 循环 and while 循环，其他关键词：break, continue, pass
# break 跳出循环
# continue 跳过当前循环
# pass 占位符，用于空语句

# for 循环
names = ['greg', 'sven', 'john']
for name in names:
    print(name)


sum = 0
for i in range(101): # 1-100
    sum = sum + i
print(sum)


# while 循环
sum = 0
i = 0
while i < 101:
    sum = sum + i
    i = i + 1
print(sum)

